<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control"  content="no-transform">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>报销报下载</title>
    <style type="text/css">
        body{
            margin: 0;
            padding: 0;
        }
        .download-page{
            position: relative;
        }
    </style>
    <link href="/statics/view/css/all.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="download-page">
        <img src="/upload/welcome.png" style="width: 100%;" onclick="openNewTab();"/>
    </div>
<script type="text/javascript">
    function openNewTab(){
        window.location.href="/upload/duobao.apk";
    }
    function is_mobileQQ() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/\sQQ/i) == " qq" && /iphone/i.test(ua) == false) {
            return true;
        } else {
            return false;
        }
    }
    function is_weixin() {
        var ua = navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == "micromessenger") {
            return true;
        } else {
            return false;
        }
    }
    var isWeixin = is_weixin();
    var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
    function loadHtml(){
        var div = document.createElement('div');
        div.id = 'weixin-tip';
        div.innerHTML = '<p><img src="/upload/live_weixin.png"  style="width: 100%;" alt="微信打开"/></p>';
        document.body.appendChild(div);
    }
    function loadStyleText(cssText) {
        var style = document.createElement('style');
        style.rel = 'stylesheet';
        style.type = 'text/css';
        try {
            style.appendChild(document.createTextNode(cssText));
        } catch (e) {
            style.styleSheet.cssText = cssText; //ie9以下
        }
        var head=document.getElementsByTagName("head")[0]; //head标签之间加上style样式
        head.appendChild(style);
    }
    var cssText = "#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}";
    if(isWeixin){
        loadHtml();
        loadStyleText(cssText);
    }

</script>
</body>
</html>